package com.fly.service;

import com.fly.domain.Authority;
import com.fly.respository.AuthorityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Fly on 2017/8/3.
 */
@Service
public class AuthorityServiceImpl implements AuthorityService {

    @Autowired
    private AuthorityRepository authorityRepository;
    /**
     * 根据ID获取权限
     *
     * @param id
     * @return
     */
    @Override
    public Authority getAuthorityById(Long id) {
        return authorityRepository.findOne(id);
    }
}
